<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head lang="en" th:replace="include/common/common :: commonHeader">
    <footer th:include="include/common/common :: layUiLoginForm"></footer>
<!--    <footer th:include="include/common/common :: bootstrapResource"></footer>
    <footer th:include="include/common/common :: blueCSSResource"></footer>
    <footer th:include="include/common/common :: zTreeCSSSource"></footer>
    <footer th:include="include/common/common :: zTreeJSSource"></footer>-->
<!--    <script type="text/javascript" th:src="@{/staticResource/icheck/icheck.js}"></script>-->
    <script>
        layui.config({
            base: '/staticResource/layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index' , 'table' , 'laydate'] , function () {
            var table = layui.table
                ,admin = layui.admin
                ,element = layui.element
                ,form = layui.form;

            $(document).on('click','.zTreeBtn' , function () {
                $("#zTreeOption").val($(this).attr('data'));
                let data = JSON.parse($(this).attr('data')) , i = '/a/layTips/treeSelectForm?isUpdateTree=false' , t = data.title;
                $.fn.blueJs.tools.active['layerOpen'].call(this , i , t);
            });

        });
    </script>
</head>
<body>
<input type="hidden" id="zTreeOption" value=""/>
<div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">
    <div class="layadmin-user-login-main">
        <div class="layadmin-user-login-box layadmin-user-login-header">
            <h2 th:text="${productName}"></h2> <h2 th:text="${productVersion}"></h2>
        </div>

        <form class="layadmin-user-login-box layadmin-user-login-body layui-form" id="loginForm" action="login" method="post">
            <div class="layui-form-item">
                <label class="layadmin-user-login-icon layui-icon layui-icon-username"></label>
                <input type="text" name="loginCode" id="loginCode" lay-verify="required" placeholder="登录账号" class="layui-input">
            </div>

            <div class="layui-form-item">
                <label class="layadmin-user-login-icon layui-icon layui-icon-password"></label>
                <input type="password" name="password" id="password" lay-verify="required" placeholder="密 码" class="layui-input">
            </div>

            <div class="layui-form-item">
                <label class="layadmin-user-login-icon layui-icon layui-icon-vercode"></label>
                <thl:tml type="orgTreeSelect" isShowCode="1" title = "登录组织" submitAttributeName="id"
                         url = "/a/orgTreeData" name = "orgCode" id = "org" submitValue = "*{organization.treeCode}" showValue = "*{organization.treeName}"
                         canSelectRoot = "true" canSelectParent = "true" isExpandAll="true"/>
            </div>

            <div class="layui-form-item">
                <span th:text="${error}" style="color: red"></span>
            </div>
            <div class="layui-form-item">
                <button type="submit" class="layui-btn layui-btn-fluid" lay-submit lay-filter="LAY-user-login-submit">登 入</button>
            </div>

        </form>
    </div>



    <div class="layui-trans layadmin-user-login-footer">
        <span>&copy;2020</span>
        <!--                <span th:text="${productName}"></span> -->
        <span>- Powered By</span>
        <span th:text="${devCompany}"></span>
    </div>
</div>




<!--<div class="wrapper">
    <div class="login-box">
        <div class="login-logo">
            <h2 th:text="${productName}"></h2> <h2 th:text="${productVersion}"></h2>
        </div>

        <div class="login-box-body">
            <form class="form-horizontal" id="loginForm" action="login" method="post">
                <div class="input-group">
                    <span class="input-group-addon login-cursor"><i class='glyphicon glyphicon-user' title="登录账号"></i></span>
                    <input type="text" class="form-control" name="loginCode" placeholder="用户名">
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon login-cursor"><i class='glyphicon glyphicon-lock' title="登录密码，鼠标按下显示密码"></i></span>
                    <input type="password" class="form-control" name="password" id="password" placeholder="密 码">
                    <span id="loginCheck"></span>
                </div>
                <br>
                <div class="input-group">
                    <span class="input-group-addon login-cursor"><i class='glyphicon glyphicon-user' title="登录组织"></i></span>

                </div>
&lt;!&ndash;                <div class="input-group">
                    <span class="input-group-addon login-cursor"><i class='glyphicon glyphicon-lock' title="登录密码，鼠标按下显示密码"
                                                       onmousedown="$('#password').attr('type','text')"
                                                       onmouseup="$('#password').attr('type','password')"></i></span>
                    <input type="password" class="form-control" name="password" id="password" placeholder="密 码">
                </div>&ndash;&gt;
&lt;!&ndash;
                <div class="input-group">
                    <div class="mt5 icheck">
                        <label title="公共场所慎用,下次不需要再填写帐号和密码">
                            <input type="checkbox" id="rememberMe" name="rememberMe"/>
                            自动登录
                        </label>
                    </div>
                </div>&ndash;&gt;

                <div class="form-group">
                    <button type="submit" class="layui-btn layui-btn-fluid" id="loginBtn">登 入</button>
                </div>

            </form>
            <div class="login-copyright">
                <span>&copy;2020</span>
&lt;!&ndash;                <span th:text="${productName}"></span> &ndash;&gt;
                <span>- Powered By</span>
                <span th:text="${devCompany}"></span>
            </div>

        </div>
    </div>
</div>-->
<!--<script type="text/javascript">
    $('#rememberMe').iCheck({
        checkboxClass: 'icheckbox_square-blue',   // 不可以更改颜色了
        increaseArea: '20%'
    });
</script>-->

</body>

</html>
